﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DelonixRegiaHMSys.UI.WebForms
{
    public partial class AddRecordSuccess : System.Web.UI.Page
    {
        string userID;
        string cid;
        string rid;
        protected void Page_Load(object sender, EventArgs e)
        {
            userID = Request.QueryString["UserID"];
            cid = Request.QueryString["CheckInID"];
            rid = Request.QueryString["ReservationID"];

            if (rid == null)
            {
                lblrecordID.Text = cid;
            }
            else
            {
                lblrecordID.Text = rid;
            }
        }

        protected void MainpageBtn_Click(object sender, EventArgs e)
        {
            Server.Transfer("~/WebForms/SystemAccountModule/Mainpage.aspx?UserID=" + userID);
        }
    }
}